package cn.lzx.industry.factory;

import cn.lzx.Bootstrap;
import cn.lzx.industry.material.People;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Component;

/**
 * Created by lizhenxing on 2018/2/5.
 */
@Component
public class SecurityCheck implements Check {


    @Override
    public void safeCheck(People people) {

    }

    public static void main(String[] args) {
        ConfigurableApplicationContext context = Bootstrap.start();
        SecurityCheck check = context.getBean(SecurityCheck.class);
        People people = new People();
        people.setUsername("李振兴");
        check.safeCheck(people);
        System.out.println(people);
    }


}
